package com.mzj.saas.jobs.bill.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 合同
 */
@Entity
@Table(name = "saas_house_contract")
public class HouseContract {

	/**
	 * 合同编号/签约编号
	 */
    @Id
    @Basic
    @Column(name = "contract_nubmer", nullable = true)
    private String contractNubmer;

    /**
     * 公租房id
     */
    @Basic
    @Column(name = "house_id", nullable = true)
    private String houseId;


    /**
     * 承租人
     */
    @Basic
    @Column(name = "match_user_id", nullable = true)
    private String matchUserId;

    /**
     * 开始时间
     */
    @Basic
    @Column(name = "start_time", nullable = true)
    private Date startTime;


    /**
     * 结算时间
     */
    @Basic
    @Column(name = "ent_time", nullable = true)
    private Date entTime;

    /**
     * 租金
     */
    @Basic
    @Column(name = "rent_amount", nullable = true)
    private Integer rentAmount;

    /**
     * 履约保证金
     */
    @Basic
    @Column(name = "earnest_money", nullable = true)
    private Integer earnestMoney;

    /**
     * 缴纳方式：1首次年付，后续按月 2首次年付、后续按季 3首次年付，后续按半年 4首次年付，后续按年
     */
    @Basic
    @Column(name = "pay_type", nullable = true)
    private Integer payType;

	@Basic
	@Column(name = "rent_unit_amount", nullable = true)
	private Integer rentUnitAmount; // 租金标准：元/平方米/月，单位分

	@Basic
	@Column(name = "housing_area", nullable = true)
	private BigDecimal housingArea; // 房屋面积

	public BigDecimal getHousingArea() {
		return housingArea;
	}

	public void setHousingArea(BigDecimal housingArea) {
		this.housingArea = housingArea;
	}

	public Integer getRentUnitAmount() {
		return rentUnitAmount;
	}

	public void setRentUnitAmount(Integer rentUnitAmount) {
		this.rentUnitAmount = rentUnitAmount;
	}

	public String getContractNubmer() {
		return contractNubmer;
	}

	public void setContractNubmer(String contractNubmer) {
		this.contractNubmer = contractNubmer;
	}

	public String getHouseId() {
		return houseId;
	}

	public void setHouseId(String houseId) {
		this.houseId = houseId;
	}

	public String getMatchUserId() {
		return matchUserId;
	}

	public void setMatchUserId(String matchUserId) {
		this.matchUserId = matchUserId;
	}

	public Integer getRentAmount() {
		return rentAmount;
	}

	public void setRentAmount(Integer rentAmount) {
		this.rentAmount = rentAmount;
	}

	public Integer getEarnestMoney() {
		return earnestMoney;
	}

	public void setEarnestMoney(Integer earnestMoney) {
		this.earnestMoney = earnestMoney;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEntTime() {
		return entTime;
	}

	public void setEntTime(Date entTime) {
		this.entTime = entTime;
	}
}
